Adwaita: dark: Make colorswatch.light tick visible
authorDaniel Boles <dboles@src.gnome.org>
Sat, 16 Sep 2017 14:46:50 +0000 (15:46 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sat, 16 Sep 2017 16:02:48 +0000 (17:02 +0100)
commit7c809cfb73a91377f9b9e1909cb3c9c31298a4b0
treeaec5b37334a934894f70fe3a6f4e6428da266c4e
parent8a26fd3308364d3e2acaa84603c936ba1f474a1c
Adwaita: dark: Make colorswatch.light tick visible

It used $text_color unconditionally, but in :dark, text is white, so we
overlaid a white tick on any light colours, all the way to white itself.

Using these named colours doesn’t make practical or semantic sense.
Instead, use white/black over dark/light swatches, as in HC, so all
variant–swatch combos work. Light looks the same, & :dark works now.

For backdrop, use alpha 0.5, unlike 0.7 in HC, as that seemed excessive
& different from the current effect. 0.5 is almost identical to how
$backdrop_fg_colour is a 50% mix of $fg_color, & matches backdrop text.

https://bugzilla.gnome.org/show_bug.cgi?id=787531
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css